#ifndef PARALLEL_FOR_H
#define PARALLEL_FOR_H

typedef void *(*for_func)(int, void*);

typedef struct {
    int start;
    int end;
    int inc;
    for_func func;
    void *args;
} parallel_for_args;

void parallel_for(int start, int end, int inc, void *(*func)(int, void*), void *args, int num_threads);

#endif